import request from '@/utils/request'

// 查询话术管理列表
export function listSpeech(query) {
  return request({
    url: '/customer/speech/list',
    method: 'get',
    params: query
  })
}

// 查询话术管理详细
export function getSpeech(id) {
  return request({
    url: '/customer/speech/' + id,
    method: 'get'
  })
}

// 新增话术管理
export function addSpeech(data) {
  return request({
    url: '/customer/speech',
    method: 'post',
    data: data
  })
}

// 修改话术管理
export function updateSpeech(data) {
  return request({
    url: '/customer/speech',
    method: 'put',
    data: data
  })
}

// 删除话术管理
export function delSpeech(id) {
  return request({
    url: '/customer/speech/' + id,
    method: 'delete'
  })
}
